package cn.bugstack.sdk.registry;

import cn.bugstack.sdk.domain.model.entity.ThreadPoolConfigEntity;

import java.util.List;

/**
 * @author Fuzhengwei bugstack.cn @小傅哥
 * @description 注册中心接口
 * @create 2024-05-12 16:21
 */
public interface IRegistry {

    /**
     * 向redis上报更新线程池列表信息
     *
     * @param threadPoolEntities 线程池列表
     */
    void reportThreadPool(List<ThreadPoolConfigEntity> threadPoolEntities);

    /**
     * 向redis上报某个线程池的参数信息
     *
     * @param threadPoolConfigEntity 线程池对象
     */
    void reportThreadPoolConfigParameter(ThreadPoolConfigEntity threadPoolConfigEntity);

}
